//
//  WithDrawViewCell.m
//  MyNewProject
//
//  Created by apple on 2019/3/12.
//  Copyright © 2019年 sun. All rights reserved.
//

#import "WithDrawViewCell.h"

@implementation WithDrawViewCell

- (nonnull instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(nullable NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self addSubview:self.tipLab];
        [self addSubview:self.contentTextField];
        
        UIView * lineView = [[UIView alloc]initWithFrame:CGRectMake(0, 50, SCREEN_WIDTH, 1)];
        lineView.backgroundColor = BackColor;
        [self addSubview:lineView];
    }
    return self;
}
-(UITextField *)contentTextField{
    if (!_contentTextField) {
        _contentTextField = [[UITextField alloc]initWithFrame:CGRectMake(100, 0, SCREEN_WIDTH - 110, 50)];
        _contentTextField.font = LightFont(15);
    }
    return _contentTextField;
}
-(UILabel *)tipLab{
    if (!_tipLab) {
        _tipLab = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, 100, 50)];
        _tipLab.font = LightFont(15);
        _tipLab.textColor = [UIColor darkGrayColor];
        _tipLab.text = @"用户名称";
        _tipLab.font = [UIFont systemFontOfSize:14];
    }
    return _tipLab;
}

@end
